import request from '@/utils/request'
// 水机


//获取水机列表
export function getApparatusJdList(params) {
    return request({
        url: '/apparatusjd',
        method: 'get',
        params
    })
}



//获取水机详情
export function getOnlineStatusM(params) {
    return request({
        url: '/apparatusjd/online',
        method: 'get',
        params
    })
}

//获取水机详情
export function getApparatusJdDetail(params) {
    return request({
        url: '/apparatusjd/detail',
        method: 'get',
        params
    })
}

//添加
export function createApparatusJd(data) {
    return request({
        url: '/apparatusjd/create',
        method: 'post',
        data
    })
}

//修改
export function updateApparatusJd(data) {
    return request({
        url: '/apparatusjd/update',
        method: 'put',
        data
    })
}


//修改
export function changeFiledStatus(data) {
    return request({
        url: '/apparatusjd/changeFiledStatus',
        method: 'put',
        data
    })
}


//删除
export function delApparatusJd(data) {
    return request({
        url: '/apparatusjd/delete',
        method: 'delete',
        data
    })
}
